package c.e.b.h.e.t;

/* compiled from: MiddleOutStrategy */
public class b implements d {
    public final int a;

    public b(int i) {
        this.a = i;
    }

    public StackTraceElement[] a(StackTraceElement[] stackTraceElementArr) {
        int length = stackTraceElementArr.length;
        int i = this.a;
        if (length <= i) {
            return stackTraceElementArr;
        }
        length = i / 2;
        int i2 = i - length;
        StackTraceElement[] stackTraceElementArr2 = new StackTraceElement[i];
        System.arraycopy(stackTraceElementArr, 0, stackTraceElementArr2, 0, i2);
        System.arraycopy(stackTraceElementArr, stackTraceElementArr.length - length, stackTraceElementArr2, i2, length);
        return stackTraceElementArr2;
    }
}
